import {Col} from 'antd'
import {ReactNode} from 'react'
import {omit} from 'ramda'


const AntCol = ({style, offset, span, children, textAlign, marginTop, height, marginBottom}) => {

    return (
        <Col span={span}
             offset={offset}
             style={{
                 ...style,
                 lineHeight: height || 'auto',
                 textAlign: textAlign || 'center',
                 marginBottom: marginBottom,
                 marginTop: marginTop
             }}>
            {children}
        </Col>
    )
}

export default AntCol